package com.gwt.tirso.gymkhana.client;

import com.google.gwt.core.client.GWT;

public class ConnectionRpc {
	
	
	public ConnectionRpc() {
		
	}

	public static IGymkhanaServiceAsync initRpcGymkhana() {
		IGymkhanaServiceAsync rpc = (IGymkhanaServiceAsync) GWT.create(IGymkhanaService.class);
		return rpc;
	}
	
	public static ILoginServiceAsync initRpcLogin() {
		ILoginServiceAsync rpc = (ILoginServiceAsync) GWT.create(ILoginService.class);
		return rpc;
	}
	
	public static IRegistrationServiceAsync initRpcRegistration() {
		IRegistrationServiceAsync rpc = (IRegistrationServiceAsync) GWT.create(IRegistrationService.class);
		return rpc; 
	}

	public static IContestServiceAsync initRpcContest() {
		IContestServiceAsync rpc = (IContestServiceAsync)GWT.create(IContestService.class);
		return rpc;
	}
	
}